﻿using System;
using OpenCube.Nbt.Mapping.Converters;

namespace OpenCube.Nbt.Mapping.Attributes
{
	/// <summary>
	/// Marks the property to be a complex sub-type, but that the properties in need to be serialized to same NbtDictionary. i.e. NBT structure is flattened.
	/// </summary>
	[AttributeUsage(AttributeTargets.Property)]
	public sealed class NbtFlattenAttribute
		: NbtConverterAttribute
	{
		public NbtFlattenAttribute()
			: base(typeof(FlattenConverter))
		{
		}
	}
}